package io.renren.modules.sp.dao;

import io.renren.common.dao.BaseDao;
import io.renren.modules.sp.dto.SpBaseMatchItemDTO;
import io.renren.modules.sp.entity.SpBaseMatchItemEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import cn.hutool.db.Page;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

import java.util.List;
import java.util.Map;

/**
* 赛项
*
* @author whc 15953295779@126.com
* @since 3.0 2023-04-21
*/
@Mapper
public interface SpBaseMatchItemDao extends BaseDao<SpBaseMatchItemEntity> {
    IPage<SpBaseMatchItemEntity> selectPageVo(Page page, @Param(Constants.WRAPPER) QueryWrapper<SpBaseMatchItemDTO>  wrapper);

    List<SpBaseMatchItemEntity> listByItemId(Long matchId);
    List<SpBaseMatchItemEntity> listAll(Long matchId);

}